package com.xueyi.system.signin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.xueyi.system.signin.domain.po.SigninPo;
import com.xueyi.system.signin.domain.query.SigninQuery;
import com.xueyi.system.signin.domain.dto.SigninDto;
import com.xueyi.system.signin.service.ISigninService;
import com.xueyi.system.signin.manager.ISigninManager;
import com.xueyi.common.web.entity.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.concurrent.locks.Condition;

/**
 * 签到管理 服务层处理
 *
 * @author xueyi
 */
@Service
public class SigninServiceImpl extends BaseServiceImpl<SigninQuery, SigninDto, ISigninManager> implements ISigninService {

    @Autowired
    private ISigninManager signinManager;

    /**
     * 查询签到对象列表 | 数据权限 | 附加数据
     *
     * @param signin 签到对象
     * @return 签到对象集合
     */
    @Override
    //@DataScope(userAlias = "createBy", mapperScope = {"SigninMapper"})
    public List<SigninDto> selectListScope(SigninQuery signin) {
        return baseManager.selectListExtra(signin);
    }

    @Override
    public List<SigninDto> getNowDAte(Long userId) {
        return signinManager.getNowDAte(userId);
    }
}
